package com.zmj.sy.mom.srv.aps.utils;

import com.zmj.sy.mom.srv.aps.bean.entity.base.Message;
import org.springframework.stereotype.Component;

@Component
public class MessageUtils {

    public Message userBuild(String userCode, String title, String summary, String content, String type, String url) {
        Message message = new Message();
        message.setAppName("mom-srv-aps");
        message.setTitle(title);
        message.setSummary(summary);
        message.setContent(content);
        message.setType(type);
        message.setLinkUrl( url);
        message.setUserCode(userCode);
        message.setScope("personal");
        message.setStatus(2);
        return message;
    }



}
